<template>
	<view>
		<view class="search" :style="'background-color:'+bgColor ">
			<view class="search_btn" @click="gotoa">
				<uni-icons type="search" size="18"></uni-icons>
				<text class="placeholder">搜索</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"search",
		props:{
			bgColor:{
				type:String,
				default:'#c00000'
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			gotoa(){
				uni.navigateTo({
					url:'/pkgGoods/search/search'
				})
			}
		}
	}
</script>

<style lang="scss">
.search{
	// background-color: #c00000;
	  height: 50px;
	  padding: 0 10px;
	  display: flex;
	  align-items: center;
	  .search_btn{
		  height: 36px;
		    background-color: #ffffff;
		    border-radius: 15px;
		    width: 100%;
		    display: flex;
		    align-items: center;
		    justify-content: center;
			.placeholder {
			    font-size: 15px;
			    margin-left: 5px;
			  }
	  }
}
</style>